Ext.define('PCD.view.MapPanel', {
    extend: 'Ext.panel.Panel',
    xtype : 'mapPanel',
    title: "地图",
    contentEl :"map",
    tbar:[{
    	xtype:"button",
    	text:"放大",
    	handler:function(){
    		map.AS.zoomIn();
    	}
    },{
    	xtype:"button",
    	text:"缩小",
    	handler:function(){
    		map.AS.zoomOut();
    	}
    },{
    	xtype:"button",
    	text:"拉框放大",
    	handler:function(){
    		map.navi("zoomin");
    	}
    },{
    	xtype:"button",
    	text:"拉框缩小",
    	handler:function(){
    		map.navi("zoomout");
    	}
    },{
    	xtype:"button",
    	text:"漫游",
    	handler:function(){
    		map.navi("pan");
    	}
    },{
    	xtype:"button",
    	text:"前一视图",
    	handler:function(){
    		map.navi("prev");
    	}
    },{
    	xtype:"button",
    	text:"后一视图",
    	handler:function(){
    		map.navi("next");
    	}
    },{
    	xtype:"button",
    	text:"测距离",
    	handler:function(){
    		map.distance();
    	}
    },{
    	xtype:"button",
    	text:"测面积",
    	handler:function(){
    		map.area();
    	}
    },{
    	xtype:"button",
    	text:"打印地图",
    	handler:function(){
    		map.print();
    	}
    }]
});